﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace ExtractAllPositiveIntegers
{
    class PositiveIntegersExtractor
    {
        static void Main(string[] args)
        {
            string text = "asdasdas dgf ga sd asd  ff f 33 -55 asdfff 423 22.5 450";
            string splitPattern = @"-[0-9][1-9]*|[0-9]*\.[0-9]*";
            string[] words=Regex.Split(text, splitPattern);
            string pattern = @"\D+";
            string joined = String.Join(string.Empty, words);
            string[] words2 = Regex.Split(joined, pattern);

            Regex regex = new Regex(pattern);
        
        }
    }
}
